<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8" isELIgnored="false"%>
<%@ include file="/WEB-INF/views/shared/taglib.jsp"%>
<table class="cntable table table-bordered dataTable table-employee ">
	<thead>
		<tr>
			<th style="width:50px">序号</th>
			<th style="width:130px">操作时间</th>
			<th style="width:130px">本次应收</th>
			<th style="width:130px">本次收款</th>
			<th style="width:130px">累计欠款</th>
			<th style="width:80px">操作类型</th>
			<th style="width:80px">备注</th>

		</tr>
	</thead>
	<tbody>
		<c:forEach var="customerRecord" items="${customerRecords}" varStatus="status">
			<tr data-id="${customerRecord.recordId}" data-type="${customerRecord.type}" data-operateId="${customerRecord.operateId}">
				<td>${status.index+1}</td>
				<td><fmt:formatDate value="${customerRecord.createDate}" type="date" dateStyle="default" pattern="yyyy-MM-dd HH:mm"/></td>
				<c:if test="${customerRecord.type != 'adjustment' }" >
					<td>${customerRecord.receivable}</td>
				<td>${customerRecord.receipt}</td>
				</c:if>
				<c:if test="${customerRecord.type == 'adjustment' }" >
					<td>${customerRecord.receivable}(原欠款)</td>
					<td>${customerRecord.receipt}(调整欠款)</td>
				</c:if>
				<td>${customerRecord.accumulativeDebt}</td>
				<td><t:provider packageName="shop" enumClassName="CustomerRecordType" value="${customerRecord.type}"/></td>
				<td>${customerRecord.comment}</td>
			</tr>
		</c:forEach>
	</tbody>
	<tfoot>
		<tr>
			<th class="pager-th">
				<%@ include file="/WEB-INF/views/shared/master/pager.jsp"%>
			</th>
		</tr>
	</tfoot>
</table>